

set(SRC_LIST friendService.cpp friend.pb.cc)
add_executable(provider ${SRC_LIST})
target_link_libraries(provider sola_rpc protobuf muduo_net muduo_base pthread)

set(SRC_LIST callFriendService.cpp friend.pb.cc)
add_executable(consumer ${SRC_LIST})
target_link_libraries(consumer sola_rpc protobuf)

set(SRC_LIST qps_test.cpp friend.pb.cc)
add_executable(qps_test ${SRC_LIST})
target_link_libraries(qps_test sola_rpc protobuf)
# 假设rpc示例也需要链接到sola_rpc库
# target_link_libraries(provider PRIVATE sola_rpc)
# target_link_libraries(consumer PRIVATE sola_rpc)
